package model;

public class Ingredient {
    private int ingredientID;
    private int storeID;  // 关联到特定门店
    private String name;  // 原材料名称
    private String type;  // 原材料类型（如奶酪、蔬菜、香料等）
    private double price; // 原材料价格

    public Ingredient(int ingredientID, int storeID, String name, String type, double price) {
        this.ingredientID = ingredientID;
        this.storeID = storeID;
        this.name = name;
        this.type = type;
        this.price = price;
    }

    public Ingredient() {

    }

    // Getters and Setters
    public int getIngredientID() {
        return ingredientID;
    }

    public void setIngredientID(int ingredientID) {
        this.ingredientID = ingredientID;
    }

    public int getStoreID() {
        return storeID;
    }

    public void setStoreID(int storeID) {
        this.storeID = storeID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
